<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>padding</title>
    <style type="text/css">
      #div1{
          width: 200px;
          height: 200px;
          border: 1px solid red;
          /*padding: 10px;*/
          padding-top: 10px;
          padding-right: 20px;
          padding-left: 30px;
          padding-bottom: 40px;
      }

    </style>
</head>
<body>
<div id="div1">我是盒子1

</div>
</body>
</html>